package com.bdqn.easybuy1.service.product;

import com.bdqn.easybuy1.entities.Product;

import java.util.List;

public interface ProductService {
    boolean add(Product product);

    boolean update(Product product);

    boolean deleteProductById(Integer productId);

    Product getProductById(Integer productId);

    List<Product> getProductList(Integer currentPageNo, Integer pageSize,
                                 String proName, Integer categoryId, Integer level);

    int count(String proName, Integer categoryId, Integer level);

    boolean updateStock(Integer productId, Integer stock);
}
